#include <iostream>

using namespace std;

class Point {
public:
    Point(int xx = 0, int yy = 0) {
        X = xx;
        Y = yy;
    }
    int GetX(){
        return X;
    }
    int GetY(){
        return Y;
    }
    void SetX(int x){
        X = x;
    }
    void SetY(int y){
        Y = y;
    }

private:
    int X;
    int Y;

};

int main() {
    Point A(1,2);
    Point B(A);
    cout<<A.GetX()<<","<<A.GetY()<<endl;
    cout<<B.GetX()<<","<<B.GetY()<<endl;
    return 0;
}